<?php
/**
 * Description
 *
 * PHP version 7
 *
 * @category Custom
 * @package  Custom
 * @author   ryu <mo5467@126.com>
 * @date     2020-04-23 00:18:02
 * @lastTime 2020-05-01 23:52:16
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     none
 */

namespace Design\Creational\Factory;

class FileLogger implements Logger
{

    private $filepath;


    public function __construct(string $filepath)
    {
        $this->filepath = $filepath;

    }//end __construct()


    public function log(string $message)
    {
        // file_put_contents($this->filepath, $message.PHP_EOL, FILE_APPEND);
        echo 'file logger ' . $message;

    }//end log()


}//end class
